Add support for deriving major modes in which-func
authorDamien Cassou <damien@cassou.me>
Wed, 7 Feb 2024 19:41:44 +0000 (20:41 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 10 Feb 2024 11:01:53 +0000 (12:01 +0100)
commit7e8b1863af8c820c2969c1a4666ae4451cbcea92
tree16433db85f2a771f8de1104e05f3102ada4bdb31
parentcbf2c297b8b32e366f45c86ebf653cee129343d4
Add support for deriving major modes in which-func

* lisp/progmodes/which-func.el (which-func-try-to-enable)
(which-func-ff-hook): Use `derived-mode-p' to check if the current major
mode is within `which-func-modes' or `which-func-non-auto-modes'.
(Bug#68981)
lisp/progmodes/which-func.el